<?php
require_once (MLEngine . 'MakiFactory/MakiFactory.php');
require_once (MLDealers . 'ActionsDealer.php');
if (! empty ( $_REQUEST )) {
	$dealer = new ActionsDealer ();
	$user = new User ();
	$user->setCoduser ( $dealer->prepareRequest ( $_REQUEST, "coduser", ActionsDealer::NUMBER ) );
	$user->setPass ( md5($dealer->prepareRequest ( $_REQUEST, "pass", ActionsDealer::STRING) ) );
	$user->setNomuser ( $dealer->prepareRequest ( $_REQUEST, "nomuser", ActionsDealer::STRING ) );
	$user->setApeuser ( $dealer->prepareRequest ( $_REQUEST, "apeuser", ActionsDealer::STRING ) );
	$user->setFreg ( time ()."" );
	$user->setFact ( time ()."" );
	//$dealer->action ( $_REQUEST ['action'], $user );
} else {
	sino ();
}

function sino() {
	//header ( 'Location: ../index.php' );
	//echo "no entro a ninguno";
}


?>